package com.erp.erp_mask.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.erp.erp_mask.pojo.TPermissions;
import com.baomidou.mybatisplus.extension.service.IService;
import com.erp.erp_mask.vo.TreeData;
import org.springframework.context.annotation.Primary;

import java.util.List;
import java.util.Map;

/**
 * @author yang
 * @description 针对表【t_permissions】的数据库操作Service
 * @createDate 2024-05-08 16:29:38
 */
public interface TPermissionsService extends IService<TPermissions> {
    Map<TPermissions, List<TPermissions>> findNavData();
    Page<TPermissions> search(String name, Integer parentId,Long pageNo,Long pageSize);
    List<TPermissions> searchPermid();
    Integer searchSort(Integer parid);
    void addList(TPermissions tPermissions);
    //权限授权
    TreeData findTreeData(Long roleId);
    List<TPermissions> searchTperlist();

}
